package com.kuang.myrule;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: springcloud
 * @description:
 * @author: 陈恩涛
 * @create: 2020-12-21 17:45
 **/

@Configuration
public class CETRule {

    @Bean
    public IRule myRule(){
        return new MyRobinRule(); //自定义负载均衡策略
    }
}
